package com.zyc.fuckfx.base;

import javafx.geometry.Insets;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.paint.Color;

public class ColorUtils {
    public static Background getBackground(String color){
       return new Background(new BackgroundFill(Color.valueOf(color), CornerRadii.EMPTY, Insets.EMPTY));
    }
    public static Color getColor(String color){
        return Color.valueOf(color);
    }
}
